package com.lindroy.jetpacknotes.paging.adapter

import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import androidx.recyclerview.widget.RecyclerView
import com.lindroy.jetpacknotes.R

/**
 * @author Lin
 * @date 2022/1/17
 * @function
 */
class HeaderAdapter : LoadStateAdapter<HeaderAdapter.ViewHolder>() {

    class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView)

    override fun onBindViewHolder(holder: ViewHolder, loadState: LoadState) {
    }

    override fun onCreateViewHolder(parent: ViewGroup, loadState: LoadState): ViewHolder =
        ViewHolder(LayoutInflater.from(parent.context).inflate(R.layout.item_header, parent, false))


}